<!DOCTYPE html>
<html lang="cn">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>cjdoc</title>
</head>

<body>
<div class="header">
<h2>package qt.widgets</h2>
</div>

<div class="header">
<h2 title="类 QPainter" class="title">类 QPainter</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public <span class="typeNameLabel">QPainter</span>
extends Any</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>字段概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="字段概要表, 列表字段和解释">
<caption><span>字段</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">字段和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>public let Int64</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#ptr">ptr</a></span></code>
<div class="block">let member ptr type is Int64</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span>所有方法</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#init">init</a></span>()</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#init">init</a></span>(widget: QWidget)</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#init">init</a></span>(device: QPaintDevice)</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#setPen">setPen</a></span>(pen: QPen)</code>
<div class="block">The Function is setPen</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#setBrush">setBrush</a></span>(brush: QBrush)</code>
<div class="block">The Function is setBrush</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#drawLine">drawLine</a></span>(x: Int64, y: Int64, x1: Int64, y1: Int64)</code>
<div class="block">The Function is drawLine</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#drawRect">drawRect</a></span>(x: Int64, y: Int64, width: Int64, height: Int64)</code>
<div class="block">The Function is drawRect</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#delete">delete</a></span>()</code>
<div class="block">The Function is delete</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#translate">translate</a></span>(dx: Float64, dy: Float64)</code>
<div class="block">The Function is translate</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#translate">translate</a></span>(offset: QPoint)</code>
<div class="block">The Function is translate</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#translate">translate</a></span>(offset: QPointF)</code>
<div class="block">The Function is translate</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.painter.html#drawPolyline">drawPolyline</a></span>(points: QPolygonF)</code>
<div class="block">The Function is drawPolyline</div>
</td>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>字段详细资料</h3>
<a name="ptr">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ptr</h4>
<pre>public let ptr: Int64</pre>
<div class="block">let member ptr type is Int64</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>方法详细资料</h3>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>
</dl>
</li>
</ul>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(widget: QWidget): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>widget</code> - of QWidget</dd>
</dl>
</li>
</ul>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(device: QPaintDevice): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>device</code> - of QPaintDevice</dd>
</dl>
</li>
</ul>
<a name="setPen">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPen</h4>
<pre>public  setPen(pen: QPen): Unit</pre>
<div class="block">The Function is setPen</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>pen</code> - of QPen</dd>
</dl>
</li>
</ul>
<a name="setBrush">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBrush</h4>
<pre>public  setBrush(brush: QBrush): Unit</pre>
<div class="block">The Function is setBrush</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>brush</code> - of QBrush</dd>
</dl>
</li>
</ul>
<a name="drawLine">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawLine</h4>
<pre>public  drawLine(x: Int64, y: Int64, x1: Int64, y1: Int64): Unit</pre>
<div class="block">The Function is drawLine</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>x</code> - of Int64</dd>

<dd><code>y</code> - of Int64</dd>

<dd><code>x1</code> - of Int64</dd>

<dd><code>y1</code> - of Int64</dd>
</dl>
</li>
</ul>
<a name="drawRect">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawRect</h4>
<pre>public  drawRect(x: Int64, y: Int64, width: Int64, height: Int64): Unit</pre>
<div class="block">The Function is drawRect</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>x</code> - of Int64</dd>

<dd><code>y</code> - of Int64</dd>

<dd><code>width</code> - of Int64</dd>

<dd><code>height</code> - of Int64</dd>
</dl>
</li>
</ul>
<a name="delete">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delete</h4>
<pre>public  delete(): Unit</pre>
<div class="block">The Function is delete</div>
<dl>
</dl>
</li>
</ul>
<a name="translate">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
<pre>public  translate(dx: Float64, dy: Float64): Unit</pre>
<div class="block">The Function is translate</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>dx</code> - of Float64</dd>

<dd><code>dy</code> - of Float64</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Unit </dd>
</dl>
</li>
</ul>
<a name="translate">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
<pre>public  translate(offset: QPoint): Unit</pre>
<div class="block">The Function is translate</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>offset</code> - offset of QPoint</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Unit </dd>
</dl>
</li>
</ul>
<a name="translate">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translate</h4>
<pre>public  translate(offset: QPointF): Unit</pre>
<div class="block">The Function is translate</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>offset</code> - offset of QPointF</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Unit </dd>
</dl>
</li>
</ul>
<a name="drawPolyline">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawPolyline</h4>
<pre>public  drawPolyline(points: QPolygonF): Unit</pre>
<div class="block">The Function is drawPolyline</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>points</code> - of QPolygonF</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Unit </dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>


</body>
</html>
